import random
import string
import time

def get_traceid(timestamp):
    timestamp_hex = hex(timestamp)[2:]  # 去掉 '0x' 前缀
    timestamp_part = timestamp_hex[-6:]
    chars = string.digits + string.ascii_letters
    random_part = ''.join(random.choice(chars) for _ in range(10))
    
    # 组合并添加前缀
    return f"F-{timestamp_part}{random_part}"    

# print(get_traceid())